package com.cloud.model;

import java.util.Date;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import com.cloud.model.evnt.Message;
import com.cloud.model.evnt.UserEvent;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Document
public class ActRecord implements UserEvent ,Message , java.io.Serializable{
	private static final long serialVersionUID = 1L;
    
	@Id
	private String id;                   //主键
	
	private String command ;
	
	private String playerid;
	private String orgi ;
	private Date createtime ;
	private String gametype ;
	private String device;
	private int score;
	private String day ;
	private String hour ;
	private String timeslot ;		//补贴时间段 ， 以后扩展备用
	private String rectype ;	//补贴类型  ， 以后扩展备用
	private int frequency ;			//当天第几次补贴 
	
	private boolean enable ;		//是否补贴 
	private int subtimes ;			//补贴次数
	private int subgolds ;			//补贴金币
	
	private int balance ;	//余额
	private int amount ;	//改变的金额
	private String action ;	//操作类型
	
	private String result ;
	private String token ;
	
	private String ruleid ;	//补贴规则ID ， 以后扩展备用
	
	private String event ;
}
